Skip to content

Instantly share code, notes, and snippets.

@marketinview
Last active October 23, 2022 16:57
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marketinview/bede2803ce08df5b6e0f to your computer and use it in GitHub Desktop.
Save marketinview/bede2803ce08df5b6e0f to your computer and use it in GitHub Desktop.
Qualtrics: Change Next Button Text. This script changes the text of the Next button. Change value of newName value as needed. #qualtrics #js #jq #next #button #finish
Qualtrics.SurveyEngine.addOnReady(function() {
var newName = 'Finish'; //Update - New Next Button label
var lastLoopOnly = true; //Last loop only? Value doesn't matter to non-loops
//No changes below
if(!lastLoopOnly || "${lm://CurrentLoopNumber}" == "${lm://TotalLoops}") {
var nb = jQuery('#NextButton');
nb.val(newName);
nb.attr('title', newName);
}
});
@marketinview
Copy link
Author

marketinview commented Nov 14, 2017

See additional Qualtrics solutions at: https://qualtricswiki.tgibbons.com/doku.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment